package com.gzx.plugin.tjzy.feign.repayment.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.tjzy.feign.repayment.service.GzxRepaymentRecordFeignService;
import com.gzx.tjzy.feign.req.repayment.RepaymentReqDto;
import com.gzx.tjzy.feign.resp.repayment.RepaymentRespDto;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/2/12 14:56
 */
@DS("tjzy")
@Service
@RequiredArgsConstructor
public class GzxRepaymentRecordFeignServiceImpl implements GzxRepaymentRecordFeignService {

//    private final GzxRepaymentRecordMapper repaymentRecordMapper;

    /**
     * 获取还款对账单数据
     *
     * @param repaymentReqDto
     * @return
     */
    @Override
    public List<RepaymentRespDto> getRepaymentList(RepaymentReqDto repaymentReqDto) {
//        return repaymentRecordMapper.getRepaymentList(repaymentReqDto);
        return List.of();
    }

    /**
     * 获取上月1号截止到上月今天的还款数据
     *
     * @return
     */
    @Override
    public List<RepaymentRespDto> getLastMonthRepaymentList() {
//        return repaymentRecordMapper.getLastMonthRepaymentList(CommonDateUtil.getLastMonthFirstDay() + " 00:00:00", CommonDateUtil.getLastMonthToday() + " 23:59:59");
        return List.of();
    }
}
